<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="org.limp.mine.DateTrimmer"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="jt.portlet.info.InfoBean"%>
<%@ page import="java.util.Map"%>
<%@ page import="java.util.List"%>
<%
   String context = jt.classic.system.ISystem.getContextPath();
   
   Map info = (Map)request.getAttribute("map");
   
   String title = (String)info.get("LMTITLE");
   
   List list = (List)info.get("INFOLIST");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>栏目Portal预览测试</title>
</head>
<jsp:include page="../head.jsp"></jsp:include>
<script>
   function viewAnnex(url){
      document.form2.action = url;
      document.form2.target = "_blank";
      document.form2.submit();
  }
</script>
<body>
<form name="form1" method="post" action="">
   <table width="100">
      <tr><td>&nbsp;<%=title%></td></tr>
      <tr><td>
      <%
        if(list != null && !list.isEmpty()){
           for(int i=0;i<list.size();i++){
              InfoBean temp = (InfoBean)list.get(i);
      %>
      <div><a href="javascript:void(0);" onclick="javascript:viewAnnex('<%=temp.getDetailUrl()%>');"><%=temp.getTitle()%></a></div>
      <%     
           }
        }
      %>
      </td></tr>
   </table>
</form>
<form name="form2" method="post">
</form>
</body>
</html>